<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->resource('category', 'CategoryController');

    $router->resource('product', 'ProductController');

    $router->resource('label', 'LabelController');

    $router->resource('article', 'ArticleController');

    $router->resource('message', 'MessageController');

    $router->resource('order', 'OrderController');

    $router->get('setting/{model}', 'SettingController@index');

});
